package org.example;

import org.example.Servlet.UserServlet;
import org.example.config.springconfig;
import org.example.user.User;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

public class app {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(springconfig.class);
        UserServlet userServlet = annotationConfigApplicationContext.getBean(UserServlet.class);
//        User selectall = userServlet.selectall(2014220144);
        List<User> selectall = userServlet.selectall();
        System.out.println(selectall);
    }
}
